package com.umeng.soexample.mvp.contract;

import com.umeng.lib_core.mvp.model.IModel;
import com.umeng.lib_core.mvp.view.IView;
import com.umeng.soexample.bean.CommunityEntity;

import io.reactivex.Observable;

/**
 * 社区接口订阅
 */
public interface CommunityFragmentContract {
    interface CommunityFragmentIView extends IView {
        void success(CommunityEntity entity);
    }

    interface CommunityFragmentIModel extends IModel {
        Observable<CommunityEntity> community(String request);
    }
}
